<?php

/**
* FooterModule.class.php
*
* Concrete page module responsable for creating page footer
*
* @author     Blazej Zieba <b@zieba.info>
* @copyright  2007 konekto.com
* @version    CVS: $Id:$
*/

require_once("framework/PageModule.class.php");

// {{{ FooterModule

class FooterModule extends PageModule 
{
    // {{{ Class operations 

    // {{{ getContent

    /**
    * Function returns page content
    *
    */

    function getContent()
    {
        trigger_error("ENTER FooterModule::getContent()", E_USER_NOTICE);
        
        $tpl = new HTML_Template_IT("./templates");
        $tpl->loadTemplatefile("footer.tpl.xhtml",FALSE,FALSE);

        $global = &PEAR::getStaticProperty('CONFIG_INI','GLOBAL');
        $tpl->setVariable("TWITTERLINK",$global['service_url'].'/?cmd=Twitter&refcmd='.$_REQUEST["cmd"].'&id='.$_REQUEST["id"].'&guide_id='.$_REQUEST["guide_id"]);

        if ( !Wurfl::isWireless() )
        {
            $tpl->setVariable("SIMULATORSKIN",'</div></div>');
        }
        else
        {
            $tpl->setVariable("SIMULATORSKIN",'');
        }

        trigger_error("LEAVE FooterModule::getContent()", E_USER_NOTICE);
        return $tpl->get();
    }
    
    // }}}

    // }}}
}

// }}} 

?>
